

cc.Class({
    extends: cc.Component,

    properties: {

        nodeone:{
            default:null,
            type:cc.Node,
        },
        nodetwo:{
            default:null,
            type:cc.Node,
        },


    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {
        let value = cc.pDistanceSQ(this.nodeone.position,this.nodetwo.position);
        cc.log("距离的平方是"+value);
    },

    // update (dt) {},
});
